package org.wanho.shop.service;

import org.wanho.shop.entity.User;
import org.wanho.shop.exception.LoginErrorException;
import org.wanho.shop.exception.UserExistsException;

/**
 * Author：汤小洋
 * Date：2023-04-26 9:37
 * Description：<描述>
 */
public interface UserService {

    public User login(String username,String password) throws LoginErrorException;

    public void register(User user) throws UserExistsException;
}
